package com.happychat;

import java.io.File;
import java.io.IOException;

import javax.swing.JFileChooser;

public class Chooser {
	public static void main(String args[]) throws IOException {
		Runtime.getRuntime().exec("explorer.exe");
		JFileChooser fc = new JFileChooser();
		fc.setFileSelectionMode(JFileChooser.OPEN_DIALOG);
		fc.showOpenDialog(null);
		File f = fc.getSelectedFile();
		if(f!=null) {
			System.out.println(f.getPath());
		}
	}
}
